<?php
if (!empty($_GET['clear'])) {
	$m->set('chatLog', array());
	$m->set('chatIndex', 0);
	$_SESSION['uchatindex'] = 0;
	header('Location:?mo=memcache_data');
	exit;
}
echo '<a href="?mo=memcache_data&clear=1">clear</a><br />';
echo '<pre>';
$chatLog = $m->get('chatLog');
$chatIndex = $m->get('chatIndex');
$ui = $_SESSION['uchatindex'];
echo '<b>chatLog:</b> ';
var_export($chatLog);
echo "\n\n";
echo '<b>chatIndex: </b>';
var_export($chatIndex);
echo "\n\n";
echo '<b>ui: </b>';
var_export($ui);
echo "\n\n";

